package be.rugbyclubleuven.rachel.domain;

import java.io.Serializable;

public class ZipCodePk implements Serializable {

	private Long code;
	private Long index;

	public ZipCodePk() {
	}

	public ZipCodePk(Long code, Long index) {
		this.code = code;
		this.index = index;
	}

	public Long getCode() {
		return code;
	}

	public Long getIndex() {
		return index;
	}

	public boolean equals(Object o) {
		return ((o instanceof ZipCodePk) && code == ((ZipCodePk) o).getCode() && index == ((ZipCodePk) o).getIndex());
	}

	public int hashCode() {
		return code.intValue() + index.intValue();
	}

}